#!/bin/bash
USER_LIST=("user1" "user2" "user3")
for USER in "${USER_LIST[@]}"; do
  useradd -m -s /bin/bash $USER
  echo "$USER:Pass123" | chpasswd
  echo "创建用户 $USER"
done